<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Text Overflow Example</title>
    <style>
        .container {
            display: flex;
            width: 100%;
        }

        .container>div {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 10px;
            border: 1px solid #ccc;
        }

        .A {
            flex: 1 1 auto;
            max-width: 30%;
        }

        .B {
            flex: 1 1 auto;
            max-width: 30%;
        }

        .C {
            flex: 0 0 auto;
            max-width: 40%;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="A">This is some very long text that might need to be truncated.</div>
        <div class="B">This is some very long text that might need to be truncated.</div>
        <div class="C">This is some very long text that should be fully visible.</div>
    </div>
</body>

</html>